Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test store map value in map #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Alan-Jowett
Copy link
Contributor

This pull request primarily involves changes to the CMakeLists.txt file and the addition of a new source file src/store_map_value_in_map.c. The changes in CMakeLists.txt include the addition of a new custom command and target for the new source file. The new source file src/store_map_value_in_map.c defines two BPF array maps and a function to lookup a value from one map and store it in the other.

  • CMakeLists.txt: Added a new custom command that compiles the new source file src/store_map_value_in_map.c to generate an object file store_map_value_in_map.o [1]. Also, added this new object file to the custom target samples ALL [2].

  • src/store_map_value_in_map.c: This is a new file that includes the definition of two BPF array maps named map1 and map2 and a function func. This function looks up a value from map1 and stores it in map2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant